package com.qq.weixin.constant;

import java.util.regex.Pattern;

/**
 * 已编译正则表达式的匹配模式
 *
 * @author li.jiang
 *
 */
public final class CompiledPattern {
    public static final Pattern MSG_TEXT = Pattern.compile(MsgType.Regex.TEXT, Pattern.DOTALL);
    public static final Pattern MSG_IMAGE = Pattern.compile(MsgType.Regex.IMAGE, Pattern.DOTALL);
    public static final Pattern MSG_VOICE = Pattern.compile(MsgType.Regex.VOICE, Pattern.DOTALL);
    public static final Pattern MSG_VIDEO = Pattern.compile(MsgType.Regex.VIDEO, Pattern.DOTALL);
    public static final Pattern MSG_SHORTVIDEO = Pattern.compile(MsgType.Regex.SHORT_VIDEO, Pattern.DOTALL);
    public static final Pattern MSG_LOCATION = Pattern.compile(MsgType.Regex.LOCATION, Pattern.DOTALL);
    public static final Pattern MSG_LINK = Pattern.compile(MsgType.Regex.LINK, Pattern.DOTALL);
    public static final Pattern EVENT_SUBSCRIBE = Pattern.compile(EventType.Regex.SUBSCRIBE, Pattern.DOTALL);
    public static final Pattern EVENT_UNSUBSCRIBE = Pattern.compile(EventType.Regex.UNSUBSCRIBE, Pattern.DOTALL);
    public static final Pattern EVENT_SCAN = Pattern.compile(EventType.Regex.SCAN, Pattern.DOTALL);
    public static final Pattern EVENT_UNSUBSCRIBE_SCAN = Pattern.compile(EventType.Regex.UNSUBSCRIBE_SCAN, Pattern.DOTALL);
    public static final Pattern EVENT_LOCATION = Pattern.compile(EventType.Regex.LOCATION, Pattern.DOTALL);
    public static final Pattern EVENT_CLICK = Pattern.compile(EventType.Regex.CLICK, Pattern.DOTALL);
    public static final Pattern EVENT_VIEW = Pattern.compile(EventType.Regex.VIEW, Pattern.DOTALL);
    private CompiledPattern() {
    }
}
